<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>业务</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/skin.css" rel="stylesheet" type="text/css" />
<link href="css/table.css" rel="stylesheet" type="text/css" />
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>

<body>
	<div style="width:93% " align="right">
		<a href="showusers">添加业务 </a>
	</div>
	<table border="1" class="t1" width="85%" align="center">
		<tr>
			<td width="5%" align="center">编号</td>
			<td width="10%" align="center">业务名称</td>
			<td width="25%" align="center">业务介绍</td>
			<td width="8%" align="center">业务状态</td>
			<td width="15%" align="center">业务负责人</td>
			<td width="10%" align="center">联系方式</td>
			<td width="10%" align="center">笔记数</td>

			<td width="20%" align="center">操作</td>
		</tr>
		<s:iterator value="businesslist" id="business">
			<tr>
				<td><s:property value="#business.bizid" />
				</td>
				<td><s:property value="#business.name" />
				</td>
				<td><s:property value="#business.description" escape="false"/>
				</td>
				<td><s:if test="#business.status == 0">不活跃</s:if> <s:else>活跃</s:else>
				</td>
				<td><s:property value="#business.manager" />
				</td>
				<td><s:property value="#business.phone" />
				</td>
				<td><s:property value="#business.noteno" />
				</td>
				<td><a
					href="<s:url action="showallnote1">
    			<s:param name="business.bizid" value="#business.bizid"></s:param></s:url>">
						笔记</a> <a
					href="<s:url action="showallatt1">
    			<s:param name="business.bizid" value="#business.bizid"></s:param></s:url>">
						附件 </a> <a
					href="<s:url action="deletebusiness">
    		<s:param name="business.bizid" value="#business.bizid">
    		</s:param><s:param name="business.clientid" value="#business.clientid"></s:param>
    		</s:url>"
					onclick="return confirm('确定删除？')?true:false;"> 删除</a> <a
					href="<s:url action="showonebusiness">
    		<s:param name="business.bizid" value="#business.bizid">
    		</s:param><s:param name="business.clientid" value="#business.clientid"></s:param>
    		</s:url>">
						修改</a>
			</tr>
		</s:iterator>
		<tr>
					<td align="center" colspan="8">共<s:property
					value="session.businesstotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
					value="pageNow+1" />页&nbsp;&nbsp;&nbsp;<s:if test="pageNow>0">
					<a
						href="<s:url action="showallbusiness"><s:param name="pageNow"  value="pageNow-1"/></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
				<s:if test="pageNow+1 !=#session.businesstotalpage">
					<a
						href="<s:url action="showallbusiness"><s:param name="pageNow" value="pageNow+1"/></s:url>">下一页</a>
				</s:if></td></tr>
		<tr>
			<td colspan="8" align="right"><a href="showallclient">返回</a>
			</td>
		</tr>
	</table>
</body>
</html>
